<?php /* FUNCTIONS $Id: projects_func.php,v 1.6.12.1 2007/01/02 17:32:47 merlinyoda Exp $ */
define(P_ALL, 1000);
define(P_UNDEFINED, 0);
define(P_PROPOSED, 1);
define(P_PLANNING, 2);
define(P_ACTIVE, 3);
define(P_HOLDING, 4);
define(P_COMPLETED, 5);
define(P_ARCHIVED, 6);
define(P_TEMPLATE, 7);

$pstatus = array(
	P_UNDEFINED => 'Undefined',
	P_PROPOSED  => 'Proposed',
	P_PLANNING  => 'Planning',
	P_ACTIVE    => 'Active',
	P_HOLDING   => 'Holding',
	P_COMPLETED => 'Completed',
	P_ARCHIVED  => 'Archived',
	P_TEMPLATE  => 'Template',
);

$ptype = dPgetSysVal( 'ProjectType' );

$ppriority_name = dPgetSysVal( 'ProjectPriority' );
$ppriority_color = dPgetSysVal( 'ProjectPriorityColor' );

$priority = array();
foreach ($ppriority_name as $key => $val) {
    $priority[$key]['name'] = $val;
}

foreach ($ppriority_color as $key => $val) {
    $priority[$key]['color'] = $val;
}

?>
